<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
   <head>
      <!-- basic -->
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <!-- mobile metas -->
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <meta name="viewport" content="initial-scale=1, maximum-scale=1">
      <!-- site metas -->
      <title>Built Better</title>
      <meta name="keywords" content="">
      <meta name="description" content="">
      <meta name="author" content="">
      <!-- bootstrap css -->
      <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
      <!-- style css -->
      <link rel="stylesheet" type="text/css" href="css/style.css">
      <!-- Responsive-->
      <link rel="stylesheet" href="css/responsive.css">
      <!-- fevicon -->
      <link rel="icon" href="images/fevicon.png" type="image/gif" />
      <!-- Scrollbar Custom CSS -->
      <link rel="stylesheet" href="css/jquery.mCustomScrollbar.min.css">
      <!-- Tweaks for older IEs-->
      <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
      <!-- owl stylesheets --> 
      <link rel="stylesheet" href="css/owl.carousel.min.css">
      <link rel="stylesheet" href="css/owl.theme.default.min.css">
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css" media="screen">
       <script src="js/jquery-1.7.js"></script>
   </head>
   <script>
        function ck(id) {
            location="toabout?id="+id;
        }
        function go(pageing) {
           location="listall?pageing="+pageing;
        }
   </script>
   <body>
      <!-- header section start -->
      <div class="header_section">
         <div class="container-fluid">
            <nav class="navbar navbar-expand-lg navbar-light bg-light">
               <div class="logo"><a href="index.html"><img src="images/432700861a341e5bde64f611ac83c163.png"></a></div>
               <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
               <span class="navbar-toggler-icon"></span>
               </button>
               <div class="collapse navbar-collapse" id="navbarSupportedContent">
                  <ul class="navbar-nav mr-auto">
                     <li class="nav-item">
                        <a class="nav-link" href="index.html">首页</a>
                     </li>
                     <li class="nav-item">
                        <a class="nav-link" href="services.html">分类</a>
                     </li>
                     <li class="nav-item">
                        <a class="nav-link" href="about.html">作者</a>
                     </li>
                     <li class="nav-item">
                        <a class="nav-link" href="shop.html">排行榜</a>
                     </li>
                     <li class="nav-item">
                        <a class="nav-link" href="contact.html">古籍</a>
                     </li>
                  </ul>
                  <form class="form-inline my-2 my-lg-0">
                     <h1 class="call_text">马猪古诗词</h1>
                  </form>
                  <div class="search_icon">
                     <ul>
                        <li><a href="#"><img src="images/search-icon.png"></a></li>
                        <li><a href="#">登录</a></li>
                     </ul>
                  </div>
               </div>
            </nav>
         </div>
      </div>
      <!-- header section end -->
      <!-- banner section start -->
      <div class="banner_section layout_padding">
         <div class="container">
            <div id="costum_slider" class="carousel slide" data-ride="carousel">
               <div class="carousel-inner">
                  <div class="carousel-item active">
                        <img src="images/tu66.jpg" style="width: 800px;">
                  </div>
                  <div class="carousel-item">
                      <img src="images/371803928e1717560bb6d059fc57cb09.jpg" style="width: 800px;">
                  </div>
                  <div class="carousel-item">
                      <img src="images/ae4539cdf8d2198f4deac739168af36c.jpg" style="width: 800px;">
                  </div>
               </div>
               <a class="carousel-control-prev" href="#costum_slider" role="button" data-slide="prev">
               <i class=""><img src="images/left-arrow.png"></i>
               </a>
               <a class="carousel-control-next" href="#costum_slider" role="button" data-slide="next">
               <i class=""><img src="images/right-arrow.png"></i>
               </a>
            </div>
         </div>
      </div>
     
	 <div class="container">
	 
						<div class="row">
	 						<div class="col-md-7" style="background-color: #FFFFFF;">
								
								   <div class="container">
								         <div style="background-color: #F8F9FA; width: 500px; height: 300px;" class="aa" th:each="a:${list.getRecords()}">
											   <h1 class="qq" >[[${a.topic}]]</h1>
											   <p class="zz">[[${a.dynasty}]]代&nbsp&nbsp[[${a.author}]]</p>
											       <p class="ww">
											        [[${a.content}]]
											   <button>点赞</button>
											   <button>评论</button>
											   <button th:onclick="ck('[[${a.id}]]')">查看</button></p>
								         </div>
								      </div>
                                <div style="text-align: center">
                                    <ul class="pagination">
                                        <li class="page-item">
                                            <a class="page-link"  th:onclick="go(1)" aria-label="Previous">
                                                <span aria-hidden="true" >&laquo;</span>
                                            </a>
                                        </li>
                                        <li class="page-item"><a class="page-link"  th:onclick="go('[[${(list.getCurrent()-1)}]]')">上一页</a></li>
                                        <li class="page-item"><a th:if="${list.getCurrent()<list.getPages()}" class="page-link" th:onclick="go('[[${(list.getCurrent())}]]')" >[[${list.getCurrent()}]]</a></li>
                                        <li class="page-item"><a th:if="${list.getCurrent()+1<list.getPages()}" class="page-link" th:onclick="go('[[${(list.getCurrent()+1)}]]')">[[${list.getCurrent()+1}]]</a></li>
                                        <li class="page-item"><a th:if="${list.getCurrent()+2<list.getPages()}" class="page-link" th:onclick="go('[[${(list.getCurrent()+2)}]]')">[[${list.getCurrent()+2}]]</a></li>
                                        <li class="page-item"><a th:if="${list.getCurrent()+3<list.getPages()}" class="page-link" th:onclick="go('[[${(list.getCurrent()+3)}]]')">[[${list.getCurrent()+3}]]</a></li>
                                        <li class="page-item"><a th:if="${list.getCurrent()<list.getPages()}" class="page-link" th:onclick="go('[[${(list.getCurrent()+1)}]]')">下一页</a></li>
                                        <li class="page-item">
                                            <a class="page-link" th:onclick="go('[[${list.getPages()}]]')" aria-label="Next">
                                                <span aria-hidden="true">&raquo;</span>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                                <!--分页-->
							</div>

							<div class="col-md-4" style="background-color: #FFFFFF;" id="mingzi">
								 <div class="" style="background-color: #EDEDED; width: 350px; height: 150px;">
									 <div style="width: 350px; height: 30px; background-color: #CED4DA;"><h2>作者</h2></div>
										<ul class="pull-left" th:each="a:${authorlst.getRecords()}">
											<li><a href="#"><span class="ee">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[${a.authorname}]]</span></a></li>
										</ul>
							     </div>
								<div class="zuozhe" style="background-color: #EDEDED; width: 350px; height: 150px;">
									 <div style="width: 350px; height: 30px; background-color: #CED4DA;"><h2>推荐</h2></div>
									 <ul class="pull-left" th:each="a:${authorlst.getRecords()}">
									 	<li><a href="#"><span class="ee">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[${a.authorname}]]</span></a></li>
									 </ul>
							   </div>
										<div class="zuozhe" style="background-color: #EDEDED; width: 350px; height: 150px;" >
											<div style="width: 350px; height: 30px; background-color: #CED4DA;"><h2>朝代</h2></div>
												<ul class="pull-left" th:each="a:${dynastylst.getRecords()}">
													<li><a href="#"><span class="ee">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[${a.dynastyname}]]</span></a></li>
												</ul>
										</div>
							</div>
						</div>
     
    
  </div>
      <!-- footer section start -->
    
      <!--  footer section end -->
      <!-- copyright section start -->
      <div class="copyright_section">
      <div class="container">
         <div class="social_icon">
            <ul>

            </ul>
         </div>
      </div>
      <!-- copyright section end -->
      <!-- Javascript files-->
      <script src="js/jquery.min.js"></script>
      <script src="js/popper.min.js"></script>
      <script src="js/bootstrap.bundle.min.js"></script>
      <script src="js/jquery-3.0.0.min.js"></script>
      <script src="js/plugin.js"></script>
      <!-- sidebar -->
      <script src="js/jquery.mCustomScrollbar.concat.min.js"></script>
      <script src="js/custom.js"></script>
      <!-- javascript --> 
      <script src="js/owl.carousel.js"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js"></script>    
   </body>
</html>